<script src="<?=base_url(); ?>theme/js/main.js"></script>
<script>
    $(document).ready(function(){
        $('#regresar').click(function(){
            $('.data_tbl').fadeIn('fast');
            $('.table_bottom').fadeIn('fast');
            $('#view_stock').fadeOut('show');
        })
    })
</script>
<div class="widget_wrap">
    
                                    <?php if (count($productData) == 0) : ?>
                                        <h1>Nose encuentra disponibilidad en el stock</h1>
                                    <?php  else : ?>
                                        <h1 id="dataProduct" code="<?php  echo $productData->code ?>" price="<?php  echo $productData->price; ?>"><?php   echo $productData->code ?> - <?php echo $productData->description ?></h1>
                                        <p>CAJA x <?php echo $productData->box_packs . " " . strtoupper($productData->pack_desc); ?></p>
                                        <div class="widget_content">
                                                    <table id="productTable" class="wtbl_list">
                                                    <thead>
                                                            <tr>
                                                                    <th>Almacén</th>
                                                                    <th>Cajas</th>
                                                                    <th>Empaques</th>
                                                                    <th>Unidades</th>
                                                            </tr>
                                                    </thead>
                                                    <tbody>
                                                        <?php   foreach ($productsxwarehouses as $s) : ?>
                                                            <tr class="tr_even" >
                                                                    <td><?php   echo $s->name; ?></td>
                                                                    <td align="right"><?php   echo $s->boxes; ?></td>
                                                                    <td align="right"><?php echo $s->packs; ?></td>
                                                                    <td align="right"><?php echo $s->Units; ?></td>
                                                            </tr>
                                                            <?php endforeach; ?>
                                                    </tbody>
                                                    </table>
                                                    <br />
                                                    <input id="totalUnits" class="" type="hidden" />

                                            </div>
                                    <?php  endif; ?>
  </div>

<button id="regresar"  class="closeModel btn_small btn_blue simplemodal-close"><span>Regresar</span></button>
